I think it does. cls.char_family is expanded (and calculations are needed) if and only if category is not already a key in the dictionary.

I think I don't get what you meant, I'll need more explanations here. ^^