Hopefully reordering when data is cleared will prevent out of memory condition.