Try to improve the performance of end-of-month session cleanup.