A collaborative defense against wear out attacks in non-volatile processors