1. Keeping track of all the uniques is highly expensive
2. You don't need to track all uniques anyway since your MAX_DICT_UNIQUE_VALUES=256, you need only track upto 256 uniques and then give up on Dictionary Encoding.