Refactored "DLLFFIHandler" to reduce static objects