Document digest, prevent duplicate key name to replace previous entry