cache encrypt_table to reslove perfermance issuse

It takes about 90 seconds to generate the encrypt_table on my Raspberry Pi,
I think it is necessary to cache it.
Otherwise we should speed up start up time on all devices.