Need to optimize computing time for exec time. Maybe by storing previously
computed bc in a table?