TS-3105

Fixes to improve post, memory usage, and reduce connection leaks.