fix symlink
add cache to some pillar functions