Slow import of realms and users from directory, during startup

Answered here: