drop use of stat operation in temporary file name generation