Revert "Compress may return less than target bytes"

This reverts commit 35260730304b0b58be5a906f8a42b2d473161476.
Revert "Revised compress method"

This reverts commit b4942d7d832339f85a40eff7bb76e65d5e421452.