Optimized globalToLocal