crypto: make it easier to diagnose keys use-after-free