massive speedup substituting gzip module with corresponding terminal