The import process is too long when user amount ~1k Drupal has https://www.drupal.org/docs/7/api/batch-api/overview to handle long processes. Lets refactor user updating process using Batch api