Smart hashes merging