Optimize session manager;