Get User scripts of custom database is called twice in various scenarios

First there should be multiple call against single user authentication flow.
Are you implimenting your own script (lazy migration) to validate user from external database?