I have a java component in my mule flow, which does some security validation.
And every time it downloads a public key from internet, as per the library I use, the library itself caches the file. But I think, because I use this library within onCall() method in my mule flow, it still loads the class for every message. (if I understand it right) . So it ends up calling public key over the internet everytime.
I am was wondering if there is any other method other onCall() I can use ? Or is there any other approach I can take ?
I can in fact download the file only once using a mule flow itself, but for the moment I dont want to refactor the existing class too much.
Regards Guru