More reliable compression handling