No that did not help. I think this is a side-effect of the Unifi integration. In one of the latest versions, it is creating multiple sensors for all of my devices that are tracking Tx and Rx speeds - this is causing a massive amount of extra log entries that is slowing everything down and my history db is growing to hundreds of MBs in a very short time. I have removed the integration to see if that fixes the problem. For sure it has made the entire system a lot more responsive.