Improve session data route handler