Save wasted queries in get_user() (again)

I am trying this again as I was unsure as to how to edit the original pull request. Sorry I am so n00b.