speed up
to increase speed, maybe it is worth looking at other libraries?
ofek / match
Richardkiss / Pycoin

famous electrum wallet uses sec256k1 dll
but they all have a big drawback! They can't do everything you do
I ask you to add the use of swift libraries.