Set the computed variables as static, per Thomas recommendation. The speed gain is 2% over previous implementation.

Signed-off-by: Stéphane Mons <st.mons.lists@free.fr>