Implemented cachign of the RDDs