Advanced Prompt Engineering: Optimizing for Performance