Implemented singleton pattern for RpcClient class to avoid init performance hit.