Optimization of the NEDM Experiment