Cache all NDArray types