sh: avoid multiple definition errors with cache funcs