Moved debug cache onto main thread

UI responsiveness greatly improved