Starting the Token Service Outside of the Loop
If your application calls insert(), get(), deleteToken(), or deleteValue() within a loop, make sure that it starts the token service outside of the loop. Otherwise, the application will read the properties files and repeat the authentication request to the Key Manager and the database for every call to the constructor.
Here is a code sample showing how to do this: