Stop saving 'heading' anchors to the db, they take up 40% of the total file size.
Dont' call len() unnecessarily. It was confusing anyway.