Refactoring: retrieving user endpoints instead of all endpoints since that is much faster.