nicer getComputedLength caching