Cost and Latency Optimization — AI Engineering: Building Production LLM Applications — Hackademy