CDataStream module optimized and refactored.