Question: Is there a way to set max memory capacity without associating cost to item size?

Set the cost to 1 when setting the item.