Since partValues does not change, so moving it out of iter.map