Making first line non-lazy to avoid computing in workers

SparkContext object is null inside workers. Therefore the first line has to be computed on driver.