8 seconds lag always after few minutes without script activation

Maybe it does nothing helpful until you restart.
You might now want to look at addons.config