setting up a proper cache for the api graph

so that the graph is a true representation across
all the api queries, cache is loaded in and shared
across samplers.