Shared memory abstraction