Optimization of plasmids for gene delivery