improve docker cache invalidation