Improve deployment performance

Hey @devcritter could you please review this, its just a 4-liner.