Use map cache in non-debug code.