Speed up regionprops function calls