Metadata-dependent AMI