High temperature flanged ball valve