Reduce a whole bunch of string allocations for checking AMI event attributes