Use new DIMES APIs. Add support of writing multiple files using DataSpaces/DIMES methods.