Added buffer pooling and other performance enhancements