Moved session config into constructor since it's reused and therefore redone unnecessarily across connections