Only doing compression once for local files