thread safe hardening