...........I've just nipped out to the shed, there's a pot of white paint going spare if it'd help?
The flippancy of your remarks suggests to me that you really do not understand the technical aspects of continuous welded rail.
To stop the rails buckling the rails are put in tension most of the time. The technical term is that they are de-stressed at a certain temperature. This means that for most of the time they are in tension and for part of the time they are in compression, but not high enough to cause a problem. If you try and touch an object that has been exposed to the hour sun for a long time it is usually considerably hotter than the air around it. Thus the rail is considerably hotter than even to 30 odd degrees air temperature.
Temperatures of 50 to 55 degrees Celsius are not uncommon (that is too hot to touch for very long without injury). Painting the rails white has been found to reduce the temperature by between 5 and 10 degrees, so that could be the difference between a speed restriction and no speed restriction!
Apart from the risk of derailment, once a track has buckled you are stuffed until you can get the temperature down sufficiently so that it can be properly de-stressed (in a hot summer period this could be days) after the repair. So
NR» takes a cautious approach to avoid buckling.
If the rails were to be stressed any more then the tension that would build up in the winter could lead to other problems so there has to be a compromise. The only other ways would be
1) to re-tension the rails every spring and autumn which I would imaging would be prohibitively expensive and would require possessions to do it;
2) Install slab track everywhere (hugely expensive and disruptive to install);
3) Go back to short lengths with fishplate joints with expansion joints - (massive increase in maintenance costs and rail failure and probably speed reductions, also much more noise).
For further information see
this from Network Rail's Website.