Switch from an O(n) method to an O(1) method for changing non-constant