Create bulk authorization request and use it to get authorization on getDataspaces
With the new policy based authorization, the etp-server sends 2*N requests to check authorization (N being the number of dataspaces of a given data partition). If we have more than one thousand dataspaces it can be VERY slow. Instead we can create a new method to send using bulk approach.
Create a AUTHORIZATION_BULK_SIZE env var so we can send by chunks. Create a EVALUATE_POLICY_PATH_BULK env var as path to send the array of uris.
Edited by Gilson Martins