Dual pass compression / decompression