Trying to slove bwa mem memory usage issue.