Describe a situation where you had to optimize an app for better performance. What steps did you take?