You have a function that does its cleanups in half a second. And you need to run it 5 times to make an accurate decision. However, at the request of the customer, the result should be obtained in no more than two seconds.
Help the customer meet time requirements.