This fixes a performance issue looking up UserProfile objects for realms with a large number of users in the case that a UserProfile object is not in the cache. Thanks to @dbiollo for the suggestion!