added get_user_by_id lookup helper and improved performance of get_users_by_id