Caching nodes now works, but is quite slow initially.