Fine-grain in-memory deduplication for large-scale workloads