Changed size of cache for each layer