We need to replace key at this point, the private key loaded from the database supercedes the passed key object