Performance enhancement for decode.