This function not only persists unsent data, it also removes old unsent data. The name is a bit misleading.