Avoid memory overflow with $.data