Adding caching for the config objects.
Adding caching for the config objects.

Close #331.

modulexcite/gh,TomzxForks/gh,modulexcite/gh,TomzxForks/gh,tomzx/gh,dustinryerson/gh,dustinryerson/gh,tomzx/gh,henvic/gh,oouyang/gh,henvic/gh,oouyang/gh