make _key_name_to_id return the id instead of the whole key, make get_key_pair get just one key instead of getting all of them and then check the results