Only non-duplicate user metadata is saved.

Fixes #303.