Revert "init gzip before output"

This reverts commit 5a9c508037683827877e3ff209cd5def0100f7df.