It would be possible, but I don't know if a smarter strategy here would catch more bugs in the caching component. Let's assume the template compiler works correctly, and we're only interested in our caches here ;)