caching in stored query documentation