correctly implement GetLastChangedTime for memory caches