added helper function to find value faster

Signed-off-by: Andreas Zöllner <andi@go-for-fun.de>