Air treatment at the compressor