performance improvement of SLD.had, SLD.is and SLD.get