Cache with shm