I know you're joking, but that operation is often disk-io bound, not cpu or memory bound... and the disk is still EBS, you'll not get much better performance on that than on an m5.xlarge I bet, unless you use a grep regex that needs to gobble lots of data into memory as part of the search.