Performance optimizations and memory management

Added some benchmarks to secure channel and played around with improving its performance, also started using a sync.Pool for message buffers.
We should remove this code entirely. This is the type of thing that leads to tragic bugs.