If we already have funcs generated, let the pillar use them

This saves an average of ~0.09s per salt-call
Merge pull request #17292 from cachedout/funcs_to_pillars

If we already have funcs generated, let the pillar use them