we can do that, only issue might be if the edit function fails it might result in a temp* file in the code. 
I can put a try / finally block if u would like to ensure that the random tmp* file is deleted anyhow