cache session lookups
switch to get_session_id