Set the cache if we're supposed to