#154 Improve performance of /scripts - cache 'by site' queries