Cache route cost.