Give Fil-C a try, the speed hit is pretty minimal and you get full memory safety.

https://fil-c.org/

Wow this is really cool, I'd never seen this before. Thanks!

Why isn't this used more?