Improving session performance