I got annoyed with the many LSP instances running and the memory they take, so wrote this. Hopefully it's useful - let me know if you have any feedback!