CT_USER can execute whatever user code is placed into it. Often an input parameter is used as a command string indicating what action to take. To allow the library to remain open for performance reasons, simply add the following two command string options:
This has the effect of keeping the CT_USER shared library loaded because the system maintains a reference count and so the dlclose() call only unloads a shared library when the number of closes matches the number of opens.