optimize key generation