Slow api requests - user's following (using java)

I tried a few things and it looks like it’s just java being weird once again, for some reason it’s slow only for the first time each run. It’s possible that it takes some time to establish the https connection or something.