Describe how you would optimize a piece of code for performance in a CCC Intelligent Solutions system.