compress before encrypt