Enhanced optimized decoding code