@Lopez Alonso, Luis Thanks for reaching out. APIM internal cache is Redis and is stored in memory only and it doesn't get encrypted. You can use external cache and implement encryption (which is a feature in preview): https://learn.microsoft.com/en-us/azure/azure-cache-for-redis/cache-how-to-encryption
let me know if you have any further queries.
Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.