Optimize memory by objects.