SCHEMA-458. Use the BITS_PER_DIGIT constant instead of magic number 6 when shifting.

Reviewer: taton
SCHEMA-459. Convert from decimal to Base64 in the constructor and store.

Memoize the results of the conversion from decimal to Base64 so it's
not being done on each call to the toString() method.

Reviewer: taton