Made initial connection more efficient and fixed a bug related to fast-expiring session data