An implantable device includes an exterior gold surface and a thin film disposed on the exterior gold surface and forming a barrier between the exterior gold surface and an implanted environment, in which the thin film includes molecules with a head portion, the head portion attached to the exterior gold surface.