Optimize cache performance.