stopped recreating agentData matrix after each render call