adding in functionality to optionally use wfSharedMemcKey