Fixed performance with session variables.