Beter encapsulate temporary files