Speedup decode by using hash lookup instead of regexp/if