[server] Speed up repo token checking.

Currently decrypting repo token consume too much CPU time.
Add a cache to speed up this.