Avoid using SELECT ... FOR UPDATE | CAST Appmarq