def transform_mem(values):
    """Transform the output of lists to something more manageable.

    :param list values: The list of values from `SHOW MEM`
    :rtype: dict

    """
    output = {}
    for value in values:
        output[value['name']] = {k: v for (k, v) in value.items()
                                 if k != 'name'}
    return output