Lift constructor tag allocation out of a loop