def _query_pkey(query, args):
    """Append 'query' and 'args' into a string for use as a primary key
    to represent the query. No risk of SQL injection as memo_dict will
    simply store memo_dict['malicious_query'] = None.
    """
    return query + '.' + str(args)