Optimized the Recipe Details Query.