Optimize date comparison ~13 times faster