Refactor TfsApi to use a memory cache.