PRD-2087: Fixing a couple of theoretical cache poisoning issues where nodes that should have been relayouted after a pagebreak are skipped.
PRD-2087: Fixing a couple of performance issues with node-caching. This concludes this case.
PRD-2087: Curbing logging and paranoid checks for maximum performance.