Currently the DB storage in the merkle tree is using json serialization for the Nodes, but a simple custom byte serialization will be more efficient. See #487