Tell me about a time when you had to optimize code to meet strict memory or CPU utilization limits. What trade-offs did you make?