In General, whenever the controller in the Spring I have to look for the user to create object and work with it. Ie let's say I go to /profile, I get the name of the authenticated user, looking for it, if it's okay to work with him. Click for /index, you again have to look for the user in the database, create an object and again, build the page for him. How to avoid search and create a new object?