Write a function to calculate an optimized, modified form of the Fibonacci sequence and explain how you would prevent redundant calculations.