Prototype to support record-level compression

This will be enough for tests