Efficient and scalable transfer learning for natural language processing