Improved session storage loading and saving.