Use thread stack memory in order to store intermediate data