Feature/encrypted metadatum

Use enumset instead of hashset.