Cache n_available_tasks for 3 hours