Make loop not recalc getNumOperands() each time around