'Update key.
Args:
new_key (str): The new key.
Notes:
This is necessary to use to make sure the optimization
caches are properly updated as well.'

def set_key(self, new_key):

    self.key = new_key.lower()
    self._optimize()
