I've always embraced failure as a noble pursuit. It allows you to be anti whatever anyone wants you to be and to break all the rules.
According to materialistic science any memory requires a material substrate such as the neuronal network in the brain or the DNA molecules of the genes.