Implement sinking aggregation data to the file