Added code for explicitly deamortizing `ST s` calculations