def METHOD_NAME(self, key: str):
    tool_config = self.session.query(ToolConfig).filter_by(key=key, toolkit_id=self.toolkit_id).first()
    if tool_config and tool_config.value:
        if is_encrypted(tool_config.value):
            return decrypt_data(tool_config.value)
        else:
            return tool_config.value
    return super().METHOD_NAME(key=key)