Optimize the ldrex/strex instruction process