Deduplicate masterfile/stream directory resources