Long lasting spinning beachball in Mail app

Recently I have found Mail app useless, specially after first launching after boot. I find spinning beachballs slowing down for quite a while until it stabilizes.
Any thoughts?
OSX 14.5 Mail 16.0
M2 Macbook Pro

Try rebuilding the Mail mailbox:

Also maybe reduce the size of your inbox by moving old emails to On My Mac.