Precompute two's inverses for all base primes. Idea taken from luke-jr.