Exclude material instances from postprocessing

I’ve made a postprocess material, which add more visible dynamic AO and applied it to the postprocess volume. Everything seems to be great except one thing: AO rendering also on foliage and grass. I think this is unnecessary and would affect perfomance much. Is there a way to exclude foliage materials from applying postprocessing?
Sorry for my english.