Use the static format to read Static metadata

These are 8b4fbe9 and b74dedd (commits 9 and 10) from #671, adjusted
to fit on the current `master`.