Convert data buffer type for the Message class to shared_ptr, eliminating need for explicit cleanup code.