Tell me about a time you had to optimize a piece of code that was already working. How did you identify the bottleneck, and what was the outcome?