Separate temporary storage into two stacks