Run specific component even with solver locked

Hi I’m wondering if there is any way to have a specific component compute even if the grasshopper solver is locked. I’m writing a ghpython based script that would disable any copy paste action to prevent people from taking part of the code but I realized that disabling the solver disables that component itself and thought that this may be a workaround to this problem. If any people have any insight into how I might achieve this using ghpython or have any idea for a better way of prevent the copy paste action it’s greatly appreciated.