rewritting binds and attempting to cache search for attr=1.1 - segmentation fault