Change key format to compact key