Execute time consuming tasks as late as possible in a request