Hi! There's no built-in recipe for this at the moment and we haven't run extensive experiments with an approach like this, but it's definitlely something you can implement. (The new dep.correct actually does something very similar.)
I've posted more details and ideas on this thread a while back: