Speedup attachement handling by replacing vector search by direct array access and secondary child lookup vector