Reduce memory usage in phase 0 and 1 when no items are used.