CO destruction in protoplanetary disk midplanes: Inside versus outside the CO snow surface