About public User loadUser(String username) throws UserNotFoundException

Every times,when one user login,the function loadUser(String username) will load all user,can i set the conf,load the need user,not the all user,thank you all