compress pac on the fly