Optimize Special:SupportedLanguages

Just a bit, it is still quite slow

Bug: 52728
Change-Id: I48e24fccf31ce93c1cf23a3436970c864b991e43
Merge "Optimize Special:SupportedLanguages"