keygen operations are now done on separate threads