Social Environment Shapes the Speed of Cooperation