reduce memory footprint of decoder context