Short circuit NOP rewriteStack cases
Move page cache handling into the same location