simple minimap optimization