Revert "Only compress once for a local file"

This reverts commit 6a02e17e39e330b9759be2177ad46f0628de50df.