Using temporary files for accessing reprof