Optimized Tithi class