Keeping Masks when subsetting in batch processing

Hi,
I would like to create a Subset based on coordinates and keep the scl masks as well to export them together with the data. Is it possible?
Best,
Ola