Reusing the same rdd for different actions