Make flattening of attribute certificates optional
flatten attribute certs as our API needs it