sign message speedup
see https://github.com/spesmilo/electrum/pull/695/files#diff-3