Restructured the way cost map is shared