400 nodes isn't really a big script so if you have a reasonably modern machine this should be totally ok.
you can use various Read/Write node combinations and set the render order knob in the write nodes to make sure images are rendered out before being used again downstream.
WriteA - render order 1
ReadA
comp away
WriteB - render order 2
ReadB
etc.
Always, check your bounding boxes to make sure they are optimized to avoid unnecessary render times and memory consumption.
Make sure your flipbook cache in the preferences is set to a fast local disk (cause it really is the entire disk cache, not just the flipbook location).