faster thread safety for client