Also retrieveCurrentUserInfoFromFile() should be deprecated, as the caching layer will remove the need for any logic that explicitly declares whether information comes directly from the database or an intermediate cache; retrieve_entity_info() will do the job.