Precalculate the mods.

If anything, it slows it down.
Pull out the single word code from the "fast" method.