I had an idea to replace the current reg_cache with memoization for
converting string literals, but never got around to it.  That would
also reduce garbage while preserving $& compatibility.