adding cache to date batching