cache thrift_file load

cache thrift_file load
let's just use pickle. the performance gap is not critical here.