Trade DRY code for perforamnce