sparkEngine: extract a cachingSparkEngine and use this only in release mode