Move all identity_caching to its own initializer to prevent failure