Cache data in shared memory