Skip gzip compression if compression_level=0

Even when `compression_level` is set to `0`, it has taken over 12 minutes to compress some boxes. This patch reduces that time to under 20 seconds.