correctly pass remotely discovered keys to encrypt