Medium firms reap reward of targeting