That’s a bad assumption though. Based on our inability to bring brains back to life it seems very likely the better comparison is volatile memory like RAM.
As discussed elsewhere in this thread, butterflies retain some memories formed as caterpillars after every cell in their body changes drastically. They never die but they change immensely and still retain memories, so I'm not sure we know enough to say what good and bad assumptions are here.