cache thrift_file load

cache thrift_file load
hmm how about remove the load_cache and dump_cache functions here. they were called only once and caused the `thrift_file` to be read twice when it could be done in one time. and we may always write to cache since it does no harm. really no need to make them a standalone function.