Mike, I believe you're right about using the precomputed factors to avoid recalculating things here.
Regarding signs, @barnabytprowe and I went back and forth on this a lot.  So, @barnabytprowe , what do you think on this one?  I recall that we thought the signs here were right, but Mike seems to be making a good point...