According to the source code, when executing User.getOrCreate() this code is executed all the time even if the user is in memory. It only needs to be done once - which should be if the user is not in memory (ie do it once when the user is loaded) - after which it is in the map of loaded users - no need to do it again - ever.... (until Jenkins restart).
One simple solution seems to be to change
The typical stacktrace I am seeing on Jenkins instance which reveal this is an issue is:
For the moment, it seems to be only a problem on NFS systems with perhaps a non very good performance.