Reworked prompt and prepared data caching