restore support for non-gzipped files! Plus reduce memory usage of gzip.