Combine text and keys into single RPC call where appropriate.