allow optional callback when precaching for file filtering