Reduce memory footprint of bzip2 routine