Compress keys for indexing on load