Optimized code structure of vnflcm