Typically, a rail painted white is 5°C to 10°C cooler than one left unpainted. As most track is made up of long pieces of rail that are stretched and welded together, there is much less chance of buckling in very high temperatures because there is reduced compression.