Text this: Genetic algorithm based adaptive offloading for improving IoT device communication efficiency