Optimize performance