add dict cache

caching dict, with corresponding to https://github.com/NetEase/pomelo/commit/6e66adaf019e3d84045cbf426e2d2f344c5e3a15