Optimized code layout