Optimized loop variables