Make this code less memory hungry and fix route command generation
Make this code less memory hungry and fix route command generation

pfsense/pfsense,phil-davis/pfsense,NewEraCracker/pfsense,ptorsten/pfsense,ch1c4um/pfsense,pfsense/pfsense,BlackstarGroup/pfsense,ptorsten/pfsense,jxmx/pfsense,phil-davis/pfsense,dennypage/pfsense,ch1c4um/pfsense,jxmx/pfsense,BlackstarGroup/pfsense,NewEraCracker/pfsense,BlackstarGroup/pfsense,phil-davis/pfsense,dennypage/pfsense,brunostein/pfsense,NOYB/pfsense,dennypage/pfsense,NewEraCracker/pfsense,NOYB/pfsense,brunostein/pfsense,ch1c4um/pfsense,phil-davis/pfsense,pfsense/pfsense,NOYB/pfsense,dennypage/pfsense,NewEraCracker/pfsense,ptorsten/pfsense,BlackstarGroup/pfsense,jxmx/pfsense,brunostein/pfsense,pfsense/pfsense,ch1c4um/pfsense