Bug 58926: Cache perfStatsTypes

This query takes minutes each once the stats table has reached a size close to
RAM. The value rarely changes, so cache the results. Restarting the rt server
after adding a new stat type is ok.

Change-Id: Iaf3ee8b090a617c3ff00845c129572aaf5fff54f