Optimize synchronized