Compute_log_likelihood RAM usage is huge

Any suggestions @OriolAbril ?