Decrease memory usage and improve memory recycling