given that using memory cache here will have performance and reliability concerns  i think a better option would be keeping a cache of all scripts tagged as ads in a separate cache and look that up here 