issue #4689: support external key.