It is ideal to have some log that logs info or does other logic after a response has been sent in order to speed up response times as well as have a single source of logic for all of the logic that should run after various functions have ran.
It would be nice to have something like what NextJs does with the After function