Conditionally compressing files