Refactoring RPC API for multithreading READ/WRITE