Cache custom fields

Hi I'm using Next auth with jwt and a whole bunch of custom session fields that are used for authorization. I really would like to migrate to Better Auth but using db for every call (eg all my trpc routes) seems like a massive performance hit.

I read you can use cached sessions and also add custom fields to sessions, so this would fix everything. Unfortunately the docs also say that custom fields can't be cached.

Is there a solution?
Was this page helpful?