Abaqus - Help with USDFLD Subrutine

For the Abaqus subroutineUSDFLD, I need to define a lot of state variables, because they can hold data, but the simulation also takes a long time and a lot of memory, what is the solution to this? I tried to define an array that could hold data, but it couldn't hold data from each integration point to the next frame. My ultimate goal is to capture the stresses in each frame of all the integration points over a period of time and process the stress data in the last frame.