MemoryCache: add support to null objects