Improved speed of decode_categorized_blog function