Update to new upstream API for caching repo states.