optimize static path rendering