In what cases is that a problem? In CoalescedRDD, we are doing similar things (saving preferredLocations here).