Typically the last transit security check before immigration has a shorter line that business class can use. If lines at the first security check you pass on exiting the plane are too long, you can keep walking, there will be another open one, however the first one will leave you closer to the ANA club room.