fix caching of asm const strings; fixes #2253