Tune performance on map iterator