Superconducting nanowire single-photon detectors: challenges in optimization of detector performance