strip newlines from classnames. Also cache value properly
Don't try to parse if no file found!