A one-time access solution (for example threadSafe=false) makes requests run one at a time. And this inevitably slows down the processing of requests.
To avoid this scenario, you need to understand why you get race conditions and (re) design your architecture to avoid the problem. For instance:
() . , .