Initializing cache array