skip key generation under some circumstances