Modify the encoding scheme to be more compact.