Make compression configurable in the client