Welcome to Mazda CX-5 Forums UKHome of the Mazda CX-5 Owners Club in the United Kingdom & Ireland
I don't think your method sounds sensible, its guessing.I would go for a remap in preference to a magic box, one that checks all the sensor parameters carries out a rolling road test and prints before and after power graphs.
I would have thought both invalidate warranty and insurance unless the insurer has been notified.