Optimize backend edit controller