Optimize code based on Analyzer results