do we know for sure that every time this function is called there's a value for that `shared` key?