Speed up multiplying B

We do a lot of multiplication of this constant, so we can
benefit from precomputing its power-of-2 multiples.