Find tasks which are non-deterministic

Is there a way to find tasks which are marked as cacheable but are non-deterministic? I imagine it would work like this:

  • execute tasks once, storing results in cache
  • run tasks again, compare result with cached result, and if they differ report it