Optimized minimap update function