Implement dependencies caching