Performance tuning of dayofyear for DateTime. 2x speedup