Start work on SessionHandler and make Cache flush use streaming operations instead