nvmap: improve memory mapping