Deep Learning and genetic algorithms for cosmological Bayesian inference speed-up