Memoizating metric_configuration retriever.

signed-off-by: Rafael Reggiani Manzo <rr.manzo@gmail.com>