Beware of the dangers of optimizing/removing infrequently run code! Believe me, that can be the most critical stuff and gets hardly ever tested.
A prime example is code that run end-of-year to, let's say, restart invoice numbering with the new years prefix. E.g. switching from 2209543 to 2300001. This particular code runs once a year for *maybe* a tenth of a second. But if it's missing or broken, bad financial things can happen.
That specific example is rather fresh in my mind. Guess what i spend the first week of January fixing while shuffling around on my knees begging the customer for forgiveness.