SimpleDateFormat is not threadsafe, refactoring