Move iterator holder outside loop to appease gc