Added connection caching. Added ability to turn off/on Encryption/Compression.