first iteration at metrics caching for harfbuzz