Make id-based invalidation work with validated updates and removes too.