Passing cache_lock=True to JID() will insert the JID into the cache and prevent it from being dropped from the cache.