Description
While profiling an heavy write workload on a single machine, I discover that calls to getFunctions were producing a lot of garbage.
Internally, the getFunctions method use Iterators or Iterables functions that creates new immutable collections at each level.
As getFunctions is called for each SELECT, INSERT, UPDATE or DELETE through the checkAccess method the impact is not neglectable.