push encoding into batch save and read level, eliminate parent_dataset_id (obviated by dataset_id)