Opaque keys validate

@cpennington @nasthagiri please review