helpers: optimize defwrap