Only query the database if the profile has not been accessed before.