Use lookup table instead of switch for nybble to byte conversion, 50% speedup

Faster lookup table access as per pull request review