Fix inconsistency of mid-exection url change

Previously, if a model's url changed midway through execution,
then the url and key would be inconsistent, resulting in data for one
url being stored under the wrong key. Setting the url at the same time
the key is set fixes this problem.
resolve cache eviction flow