Optimizations

remove (uint8_t*) No need for it, malloc returns void* as well as allocate