Reduce FOUC when initializing identity