Does it matter if you don’t remember?

Does it matter if you experienced pain in the past, but you don’t remember? (And there are no other side-effects, etc etc). At one point in Accelerando, Charles Strauss describes children that routinely decapitate and disembowel each other, only to be repaired (bodily and memory-wise) by the friendly local AI. This struck me as awful, but I’m suspicious of my intuition. Note that here I’m assuming pain is a terminal “bad” factor in your utility function. You can substitute “pain” for whatever you think is bad. I think there are at least two questions here:

  1. Is it bad for someone to be in pain if they will not remember it in the future? I think yes, because by assumption pain is a terminal “bad” node. Being relieved of future painful memories is good, but nowhere near good enough to fully compensate.

  2. Is it bad to have experienced pain in the past, if you don’t remember it? Or, can your utility function coherently include facts about the past, even if they have no causal connection to the present? My intuition here says yes, but I’d be interested in others’ thoughts. To make this concrete, imaging that you have a choice between medium pain that you will remember, or extreme pain followed by memory erasure.