memory.lua: Optimize caching in virtual_to_physical().

The cache is now indexed by huge pages (~ 2MB covered per cache entry) rather
than base pages (4KB covered per cache entry).