Modified DataCache to use SPL classes/functions