You can use a 'map' compression, which is essentially:
char value;
if (input == "AE9B56FC5845AC8298FFC57E307145A4") value = 1;
...
if (value == 1) output "AE9B56FC5845AC8298FFC57E307145A4"
But this is a bit unrealistic in the real world, although I've beaten your '24 bit' requirement by a long shot.