cache thrift_file load

cache thrift_file load
it would be better to fall back to normal import here.

it will raise exception and crash working program when thriftpy version changed.