Enhanced constant memory example