Write cached data back to lore on garbage collect