Improvements of memory efficiency of decoding