Slight performance improvement for custom formatting tasks