Use cached_db SESSION_ENGINE, remove yet another query!