moved native-image memory cache to MemoryImageCache