A nanostructured pn junction light-emitting diode is fabricated from a semi-conducting substrate doped by a first dopant and covered by a dielectric thin layer. The interface between the cone arm and the pocket employs a key and slot configuration with a tighter fit than between the arm and the pocket to reduce the stress on the pocket side wall during drilling. Further, each of the back surfaces of the ASIC chip and the memory chip is connected to a metal cap for sealing the opening through a thermal conductive material interposed therebetween.