Support extended NFA cache API.

This supports Cursor optimizations recently made in NQP.