Speeding up bit operations by removing the extra caution introduced before. The new function will be used for faster RBF generation, introduced in a later commit.
Speeding up bit permutation. Doing more work in a pre-computation phase, other optimizations to lower level (also including a new function in the earlier commit).