Avoid unnecessary mapreduce in opt out check