Keep the batch caching inside BatchExecutor
Changed variable name for clarity.
Test case for profiling batch performance.