dynamic filesync: add some cache optimizations