gen public key on app init instand of on request