Improve memory synchronization