compress tmp file