Give Routine a version field, maintained to increase for every rooutine.
Use that version to validate routine caches.