Isn’t this one of the main purposes of mussar – to take what we know through the Torah that we should b’etzem be doing and ingrain it into ourselves so that it doesn’t even take any thought?
One of the ways we are mechuyav to do something like this is by shema, by active thinking that yes, I would give up my life for the mitzvos.