I had a similar idea some months ago (for different reasons), but I ended up not going through with it as I decided it wasn’t really a good idea…
I still have the code that I wrote to do this, you’d be welcome to a copy if you’d like to experiment with it?