remove locking and use atomics and thread safe data structures
adding cached connection pool support