Optmization of BGP containers NPE checks