Revert "switched to gzip stream instead of compressing an array"

This reverts commit 542c2fd392caaf33d8bd4d22b4bfb96c6638c7f2.