Dedupe 2.0: The Benefits of Optimizing Primary and Secondary Storage