Minimize authentication code