rpc/dns: reduce the CID count on temporary variables