It’s also severely optimistic to think that the guy doing it will suffer the consequences: if you search the news, you’ll find plenty of examples of cases where someone thought they knew the attacker but wasn’t able to prove it. Moreover even if they could prove it and the attacker did suffer consequences, it won’t magically wipe everyone else’s memories.