pass bucket sizes num_read and num_written around as size_ts