Performance improvements to Base32 transforms.

Around 5x perf improvement for both encode and decode.