You probably want `known_keys = known_keys & new_keys`