The `allKeys` is expensive and redundant here. Dictionaries are already fast enumerated by key.