crypto: use auto cleanup for many stack variables