prevent N queries on `Deploy` creation