optimizes compressed size