> but it does not know why you need the function.
Seen that many times in humans, too.
One place, we were upgrading the data storage in an app from a custom file format to a local database, and on some files the transfer process from old to new was taking 20 minutes. The other developer absolutely insisted it was as fast as it could possibly be, even though (1) the app loaded the data almost instantly when it was plain text, and (2) likewise after the data had been transferred to the database.
I looked through the transfer function and the tree of other functions that it called in turn, found it was trying to de-duplicate some data, asked the CTO if we cared about this, CTO said no, I removed that function, and measured the new time to transfer that specific data as, IIRC, 200ms.