storing trace on disc to free up memory