Speed up trace loading
Store accumulated cost in trace instead of edge cost