Get Text activity approximately taking 60 to 120 seconds when running the bot in background

Get Text activity taking 1 to 3 minutes when the bot running background.

Running perfectly fine(Grabbing the test in fraction of seconds) when it runs in Studio or running while I open that host machine logged in.

And it happens in our Development and UAT machines. It works perfectly fine in PROD machines.

Any idea why this is happening?