Impact of recurrent gene duplication on adaptation of plant genomes