Private Spark core lib