It works perfectly! I also lowered the FIFOQ_TRIES_COUNT to 100 to enable it to usleep() more often and got a nice side effect. Signing with SoftHSM on a single core machine increased 2.14 times, from 1333/sec to 2858/sec. /Jerry