Only refresh once for each layer the context