Draft version of shared memory for key.c (ticket #23).