> and this would make two queries per visit just to record or verify if the user is in the bank...
I think one query would be enough, as the check if a user has already visted could be done via a join when querying the thread so it would not need an extra query.
Edit: I should have read the request carefully

To display the users and not just check if the viewing user has visited 1-2 queries would be necessary.