Tuning resource usage for bwa