I was watching this video: https://www.youtube.com/watch?v=gHGMDFm2MVs in which it is suggested to use memset_s() to avoid any issues because of compiler optimizations.

Also explained here: https://stackoverflow.com/questions/56565539/memset-s-what-does-the-standard-mean-with-this-piece-of-text
It is used at lot of places: https://github.com/search?l=&q=memset+repo%3Abitcoin%2Fbitcoin&type=code
Should we replace it with memset_s() ?