Duplit context name check and corrected logic with caching context check result