small rpc optimization