Improve memory management for data binding