restore dep caching with transaction scope and invalidation