Statistical mechanics of an optical phase space compressor