Similar Items: Cerberus: Cross-Layer ECC Co-Design for Robust and Efficient Memory Protection