Don't cache single-use objects to disk

Extensive refactoring of graph/node processing to avoid caching single-use objects to disk.