Optimize performance.