Cache header height for better performance