Mad compression