finished implementing ssl session caching / reuse, optimised cmake