Build cache when done with traverse