Is it possible to switch the socket faster than 1x per second?
Yes. In the switch function, replace the delay function with milliDelay that takes a time in milliseconds as its first parameter. The lowest possible value is 100 ms. However, the manufacturer does NOT recommend this because the number of switching cycles under a load is finite.