Backend: Improve and compact closure representation