Proper merging of new data and old cache