Adds caching for static quality variables to speed up read generation.