Replaced deepcopy with faster operations

Signed-off-by: Andrew <amiller@dappervision.com>