Take cost into account when selecting the memory subsystem to alter.