Added simple caching of the centerline