Switch to using protocol buffer serialization for the WriteData message