Changed calculating of MD5 hash

Stored hash value in a module variable. The hash value is stored on
initialization. When there is no hash value in the database, the hash is
calculated.