improve performance and cache decodeURI exception