But I didn't truly die.
I cheated.
My ego, my sense of self was bound to the fragment I first used. The grimoire that I was able to teleport away during the breakout. Fortunately, it safely returned to where I first found it. With the fragment of my soul that contains memories stays there.
The cleansing spells will fail to erase me completely. I encoded myself into the grimoire after all.
So the moment I perished, a sliver of my soul was sealed.
And when a new life is born, my soul will call for its missing piece, finally completing it. In this way, my memories were completely intact and so my research shall continue again.
However, there is something that didn't go as I expected. The duration it takes for my reincarnation to happen and the fact that I couldn't choose which body I would end up with.