performance optimizations and refactoring of date/time/currency formatters