Cache information about document YAML header existence