move identity_cache setup to /models