Fix result caching behavior