Use THREAD_GETMEM_NC and THREAD_SETMEM_NC where necessary.