Rewrite decompression for speed