Put temporary storage in the device instead of on the stack