Increase speed of hex string conversion by several fold.

This increases the speed of hex string creation by several fold.