Optimize branch misses