@karlnapf  @emtiyaz 
ok only CZeroMean and CGaussianLikelihood which not depends on kernel can pull out of the loop.