SPeeding up by preventing double computation