Auth optimization