State dependent memory