Allow deduplication with a flag; consumes much more memory.
Sync two buckets given a list of keys.
Fix improper bit flag or-ing.