Only check for User ID when necessary.
Only check for User ID when necessary.

It turns out the time spent on the database is actually only half of
the total time spent when searching at most. The issue wsa that when
we call getUsername a network call is being made under the hood to see
if the current user is CAS-authenticated. By only making that check when
necessary, the query parsing time goes from ~25ms to ~25us.

casey-chow/tigertrade,casey-chow/tigertrade,casey-chow/tigertrade,casey-chow/tigertrade