http tasks optimization