another static gzip refactoring