Caching for Scientific Computations with special checks on updated dependencies