Avoid too many open files in DICOM reader.