Also, keep in mind that suffering with the correct disposition can remove temporal punishment due for sins so dying for your faith could fall under that. And perfect contrition ( sorrow & detestation for your sins arising from a love for God) remits venial sins & mortals sins (CCC1452). Of course, only God know your heart and your reason for acting in a certain way, so only He would know to what extent your sins are forgiven and to what extent the temporal punishments due are removed.