Separate temp file name generator to a separate class