add cache for batch results