lzma: further improvements on decoder read