clear_data() for removing data allocations.